import instance, { buildOptions } from "./index";

export async function OrderPay(data: any) {
  const options = buildOptions(data, "legal/im.order/pay");
  return instance(options);
}

export async function CheckPay(data: any) {
  const options = buildOptions(data, "legal/im.order/check_order");
  return instance(options);
}

export async function GetOrder(data: any) {
  const options = buildOptions(data, "legal/im.order/order_detail", "GET");
  return instance(options);
}
